#pragma once
#include "multimedia.h"
#include<algorithm>

using namespace std;

class Register: public Multimedia
{
private:

	vector<Multimedia> multimedia;
public:
	bool quit;

public:

	bool Quit() { return quit;}

	Register();
	void Add();
	void Add(string t, int y, string media_type);
	void Print();
	void Delete(int index);
	int Search(string t);
	void Sort();
	void Writetofile();
	void Readfromfile();

	friend ostream & operator <<(ostream & out, Register & op);
	friend istream & operator >>(istream & in, Register &op);

	
};

